import request from '@/utils/request'

// 查询财物日志列表
export function listPropertyLog(query) {
  return request({
    url: '/oms/propertyLog/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/oms/propertyLog/initBean',
        method: 'post'
    })
}

// 查询财物日志详细
export function getPropertyLog(id) {
  return request({
    url: '/oms/propertyLog/' + id,
    method: 'get'
  })
}

// 新增财物日志
export function addPropertyLog(data) {
  return request({
    url: '/oms/propertyLog',
    method: 'post',
    data: data
  })
}

// 修改财物日志
export function updatePropertyLog(data) {
  return request({
    url: '/oms/propertyLog',
    method: 'put',
    data: data
  })
}

// 删除财物日志
export function delPropertyLog(id) {
  return request({
    url: '/oms/propertyLog/' + id,
    method: 'delete'
  })
}
